#coding=utf8
from django.conf.urls.defaults import *

urlpatterns = patterns('docshare.share.views',
    (r'^$', 'resource.login'),
    (r'^logout/$','resource.logout'),
    (r'^resource/show_resource/$','resource.show_resource'),
    (r'^resource/show_leveltwo_resource/(?P<catogry>\d+)$','resource.show_leveltwo_resource'),
    (r'^resource/show_files/(?P<catogry>\d+)$','resource.show_files'),
    (r'^resource/show_files_pic/ca_(?P<catogry>\d+)type_(?P<type>\d+)$','resource.show_files_pic'),
    (r'^resource/search/$','resource.show_search'),
    (r'^resource/show_context/(?P<fileId>\d+)$','resource.show_files_context'),
    (r'^resource/file_midif/$','resource.file_midif'),
    (r'^resource/user_info/(?P<id>\d+)$','resource.user_info'),
    (r'^resource/trash/$','resource.trash'),
    (r'^resource/pub_list/$','resource.pub_list'),
    (r'resource/ajax_leveltwo_resource/(?P<catogry>\d+)$','resource.ajax_leveltwo_resource'),

    (r'^affiche/new/$','affiche.new'),
    (r'^affiche/list/$','affiche.list'),
    (r'^affiche/affiche_sub/$','affiche.affiche_sub'),
    (r'^affiche/show/(?P<id>\d+)$','affiche.show'),
    (r'^affiche/del/(?P<id>\d+)$','affiche.dels'),
    (r'^affiche/edit/(?P<id>\d+)$','affiche.new'),

    (r'^manage/index/$','manage.index'),
    (r'^manage/resource_sel/$','manage.resource_sel'),
    (r'^manage/setting_levelone/$','manage.setting_levelone'),
    (r'^manage/add_levelone/$','manage.edit_levelone'),
    (r'^manage/edit_levelone/(?P<id>\d+)$','manage.edit_levelone'),
    (r'^manage/setting_leveltwo/(?P<id>\d+)$','manage.setting_leveltwo'),
    (r'^manage/add_leveltwo/p_(?P<pid>\d+)c_(?P<cid>\d+)$','manage.edit_leveltwo'),
    (r'^manage/show_dictionary/$','manage.show_dictionary'),
    (r'^manage/new_dictionary/$','manage.edit_dictionary'),
    (r'^manage/edit_dictionary/(?P<id>\d+)$','manage.edit_dictionary'),
    (r'^manage/clear/$','manage.clear'),
    (r'^manage/edit_file/(?P<id>\d+)$','manage.edit_file'),
    (r'^manage/show_roles/$','manage.show_roles'),
    (r'^manage/show_users/$','manage.show_users'),
    (r'^manage/edit_active/$','manage.edit_active'),
    (r'^manage/edit_user/(?P<id>\d+)$','manage.edit_user'),
    (r'^manage/re_password/(?P<id>\d+)$','manage.re_password'),
    (r'^manage/update_role/(?P<id>\d+)$','manage.update_role'),
    (r'^manage/update_root/$','manage.update_root'),
    (r'^manage/trash_del/(?P<id>\d+)$','manage.trash_del'),
    (r'^manage/trash_revert/$','manage.trash_revert'),
    (r'^manage/trash_put/(?P<id>\d+)$','manage.trash_put'),
    (r'^manage/forum/delete_post/(?P<id>\d+)$','manage.delete_post'),
    (r'^manage/forum/delete_reply/(?P<id>\d+)$','manage.delete_reply'),

    (r'^forum/index/$','forum.index'),
    (r'^forum/new/$','forum.new'),
    (r'^forum/show_replies/(?P<id>\d+)$','forum.show_replies'),

    (r'^no_permission/$','manage.no_permission'),

)

